package pe.upc.dsd.jjjar.metropolitano;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MenuActivity extends Activity{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.menu);
		
		
		Button btnBuses = (Button)findViewById(R.id.Buses);
		btnBuses.setOnClickListener(new OnClickListener() {
        	
        	public void onClick(View v) {
        		Intent busesRequestIntent = new Intent(MenuActivity.this,BusesRequestActivity.class);
        		startActivity(busesRequestIntent);
        	}
        });
        
        Button btnEstaciones = (Button)findViewById(R.id.Estaciones);
        btnEstaciones.setOnClickListener(new OnClickListener() {
        	
        	public void onClick(View v) {
        		
        		Intent mapsIntent = new Intent(MenuActivity.this,EstacionesActivity.class);
        		startActivity(mapsIntent);
        		
        	}
        });
        
        Button recargaButton = (Button)findViewById(R.id.Recarga);
        recargaButton.setOnClickListener(new OnClickListener() {
        	
        	public void onClick(View v) {
        		Intent recargaIntent = new Intent(MenuActivity.this,RecargaActivity.class);
        		startActivity(recargaIntent);
        	}
        });
        
		
	}
	
}
